package com.len.controller;

import com.len.base.BaseController;
import com.len.entity.SpBondmanage;
import com.len.service.SpBannerService;
import com.len.service.SpBondmanageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("bondmanage")
public class SpBondmanageController extends BaseController<SpBondmanage> {
    @Autowired
    private SpBondmanageService spBondmanageService;
    @RequestMapping("/show")
    public String show(SpBondmanage spBondmanage){
        try {
            spBondmanageService.selectByPrimaryKey(spBondmanage);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }

    @RequestMapping("/save")
    public String save(SpBondmanage spBondmanage){
        try {
            spBondmanageService.insert(spBondmanage);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
    @RequestMapping("/update")
    public String update(SpBondmanage spBondmanage){
        try {
            spBondmanageService.updateByPrimaryKey(spBondmanage);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
}
